<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增营养元素')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-chemistry-add">
            <div class="form-group">    
                <label class="col-sm-3 control-label">不稳定碳(mg/kg)：</label>
                <div class="col-sm-8">
                    <input name="doc" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">不稳定氮(g/kg)：</label>
                <div class="col-sm-8">
                    <input name="don" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">重金属(g/kg) 全量：</label>
                <div class="col-sm-8">
                    <input name="cdall" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">重金属(g/kg) 有效态：</label>
                <div class="col-sm-8">
                    <input name="cd" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">可利用氮(mg/kg)no3：</label>
                <div class="col-sm-8">
                    <input name="anno3" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">可利用氮(mg/kg)nh4：</label>
                <div class="col-sm-8">
                    <input name="annh4" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">阳离子交换量：</label>
                <div class="col-sm-8">
                    <input name="cec" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">电导率 EC (ms/cm)：</label>
                <div class="col-sm-8">
                    <input name="ec" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">总氮(g/kg)：</label>
                <div class="col-sm-8">
                    <input name="alln" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">可利用K(g/kg)：</label>
                <div class="col-sm-8">
                    <input name="aK" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">可利用磷(mg/kg)：</label>
                <div class="col-sm-8">
                    <input name="aP" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">ph值：</label>
                <div class="col-sm-8">
                    <input name="ph" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">有机碳：</label>
                <div class="col-sm-8">
                    <input name="oc" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/chemistry"
        $("#form-chemistry-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-chemistry-add').serialize());
            }
        }
    </script>
</body>
</html>